// These are meant to be typed into the REPL. You can also run
// scala -Xnojline < repl-session.sc to run them all at once.

/**
 * 数据类型：
 * https://www.runoob.com/scala/scala-data-types.html
 */


// 隐式转换成RichInt
1.toString()
// java version :
// Long a = 1000L;
// Double d = Double.valueOf(a)
// a.toDouble

1.to(10)
//res0: scala.collection.immutable.Range.Inclusive = Range(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)

// String 隐式转换成 StringOps
"Hello".intersect("World") 
//res1: String = lo

"World".intersect("Hello")
//res2: String = ol

// 类型之间的转换需要通过方法进行，没有强制转化
99.04.toInt

val i = null

val j:Int = null